package org.apache.jsp.manager.sales;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;

public final class OrderList_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=euc-kr");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      java.util.Hashtable outputTable = null;
      synchronized (request) {
        outputTable = (java.util.Hashtable) _jspx_page_context.getAttribute("outputTable", PageContext.REQUEST_SCOPE);
        if (outputTable == null){
          outputTable = new java.util.Hashtable();
          _jspx_page_context.setAttribute("outputTable", outputTable, PageContext.REQUEST_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
      java.util.Hashtable inputTable = null;
      synchronized (request) {
        inputTable = (java.util.Hashtable) _jspx_page_context.getAttribute("inputTable", PageContext.REQUEST_SCOPE);
        if (inputTable == null){
          inputTable = new java.util.Hashtable();
          _jspx_page_context.setAttribute("inputTable", inputTable, PageContext.REQUEST_SCOPE);
        }
      }
      out.write("\r\n");
      out.write("\r\n");

	if(request.getAttribute("message")!=null && ((String)request.getAttribute("message")).length()>0)
	{
		String message = (String)request.getAttribute("message");

      out.write("\r\n");
      out.write("\t\t<SCRIPT language=\"JavaScript\">window.alert(\"");
      out.print( message);
      out.write("\");</SCRIPT>\r\n");

	}

      out.write("\r\n");
      out.write("\r\n");

		ArrayList orderStateList = (ArrayList)outputTable.get("orderStateList");
		String hidden = (String)inputTable.get("hidden");
		String option1 = (String)inputTable.get("option1");
		String option2 = (String)inputTable.get("option2");
		String date1 = (String)inputTable.get("date1");
		String date2 = (String)inputTable.get("date2");
		String unit = (String)inputTable.get("unit");
		String id = (String)inputTable.get("id");
		
		double doubleUnit = Double.parseDouble(unit);
		int count=Integer.parseInt((String)outputTable.get("count"))/Integer.parseInt(unit);


		if(Integer.parseInt((String)outputTable.get("count"))%Integer.parseInt(unit)>0)
		{
			count += 1;
			
		}
		else
		{
			count = Integer.parseInt((String)outputTable.get("count"));
		}

		int inputPage = Integer.parseInt((String)inputTable.get("inputPage"));
		
		
		ArrayList orderList = (ArrayList)outputTable.get("orderList");
		
		ArrayList deliveryStateList  = (ArrayList)outputTable.get("deliveryStateList");

      out.write("\r\n");
      out.write("\r\n");
      out.write("<SCRIPT language=\"JavaScript\">\r\n");
      out.write("\t\r\n");
      out.write("\tfunction selectAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.OrderListForm;\r\n");
      out.write("\r\n");
      out.write("\t\tf.id.value = trim(f.id.value);\r\n");
      out.write("\t\tf.date1.value =trim(f.date1.value);\r\n");
      out.write("\t\tf.date2.value = trim(f.date2.value);\r\n");
      out.write("\t\tf.func.value=\"msales_001\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction selectAction2()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.OrderListForm;\r\n");
      out.write("\t\tf.inputPage.value = \"1\";\r\n");
      out.write("\t\tf.id.value = trim(f.id.value);\r\n");
      out.write("\t\tf.date1.value =trim(f.date1.value);\r\n");
      out.write("\t\tf.date2.value = trim(f.date2.value);\r\n");
      out.write("\t\tf.func.value=\"msales_001\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\t\r\n");
      out.write("\r\n");
      out.write("\tfunction todayAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.OrderListForm;\r\n");
      out.write("\r\n");
      out.write("\t\tf.id.value = \"\";\r\n");
      out.write("\t\tf.date1.value = \"\";\r\n");
      out.write("\t\tf.date2.value = \"\";\r\n");
      out.write("\t\tf.hidden.value=\"TODAY\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction monthAction1()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.OrderListForm;\r\n");
      out.write("\t\tf.id.value = \"\";\r\n");
      out.write("\t\tf.date1.value = \"\";\r\n");
      out.write("\t\tf.date2.value = \"\";\r\n");
      out.write("\t\tf.hidden.value=\"MONTH1\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction monthAction2()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.OrderListForm;\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tf.id.value = \"\";\r\n");
      out.write("\t\tf.date1.value = \"\";\r\n");
      out.write("\t\tf.date2.value = \"\";\r\n");
      out.write("\t\tf.hidden.value=\"MONTH2\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction monthAction3()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.OrderListForm;\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tf.id.value = \"\";\r\n");
      out.write("\t\tf.date1.value = \"\";\r\n");
      out.write("\t\tf.date2.value = \"\";\r\n");
      out.write("\t\tf.hidden.value=\"MONTH3\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction saveAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.OrderListForm;\r\n");
      out.write("\t\tf.func.value=\"msales_005\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction goPageAction(pageNumber)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tif (pageNumber == 0)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\twindow.alert(\"처음 페이지 입니다.\");\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\telse if (pageNumber > ");
      out.print(count);
      out.write(")\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\twindow.alert(\"끝 페이지 입니다.\");\r\n");
      out.write("\t\t\treturn false;\t\t\t\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\telse\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tvar f = document.OrderListForm;\r\n");
      out.write("\t\t\tf.func.value=\"msales_001\";\r\n");
      out.write("\t\t\tf.inputPage.value = pageNumber;\r\n");
      out.write("\t\t\tf.submit();\t\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction checkAction(i)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.OrderListForm;\r\n");
      out.write("\r\n");
      out.write("\t\tif (f.check.length == undefined)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tf.check.checked=true;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\telse\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tf.check[i].checked=true;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("\r\n");
      out.write("\t<FORM name=\"OrderListForm\" action=\"service.ManagerSalesServlet\" method=\"post\">\r\n");
      out.write("\t<INPUT type=\"hidden\" name=\"func\" value=\"msales_001\"></INPUT>\r\n");
      out.write("\t<BR>\r\n");
      out.write("\t<FONT face=\"돋움체\" size=\"4\" color=\"#484848\"><B>주문 관리</B></FONT>\r\n");
      out.write("\t<FONT face=\"돋움체\" size=\"2\" color=\"#666666\">지불 상태, 배송 상태 변경 페이지 입니다</FONT>\r\n");
      out.write("\t<BR>\r\n");
      out.write("\t<INPUT type=\"hidden\" name=\"hidden\" value=");
      out.print(hidden);
      out.write(">\r\n");
      out.write("\t<INPUT type=\"hidden\" name=\"dateOne\" value=");
      out.print(date1 );
      out.write(">\r\n");
      out.write("\t<INPUT type=\"hidden\" name=\"dateTwo\" value=");
      out.print(date2 );
      out.write(">\r\n");
      out.write("\t<INPUT type=\"hidden\" name=\"inputPage\" value=\"");
      out.print(inputPage);
      out.write("\">\r\n");
      out.write("\t<FIELDSET style=\"width:750; padding=10px\">\r\n");
      out.write("\t\t\t<DIV>\r\n");
      out.write("\t\t\t\t<FONT face=\"돋움체\" size=\"2\" color=\"#666666\">&nbsp;&nbsp;&nbsp;&nbsp;조회기간&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;</FONT>\r\n");

				if (hidden!=null && hidden.equals("TODAY"))
				{

      out.write("\r\n");
      out.write("\t\t\t\t\t<IMG src=\"/images/manager/sales/today_btB.gif\" onclick=\"todayAction()\" style=\"cursor:hand\" ></IMG>\r\n");

				}
				else
				{

      out.write("\r\n");
      out.write("\t\t\t\t\t<IMG src=\"/images/manager/sales/today_btA.gif\" onclick=\"todayAction()\" style=\"cursor:hand\" ></IMG>\r\n");

				}
				if (hidden!=null && hidden.equals("MONTH1"))
				{

      out.write("\r\n");
      out.write("\t\t\t\t\t<IMG src=\"/images/manager/sales/1month_btB.gif\" onclick=\"monthAction1()\" style=\"cursor:hand\"  ></IMG>\r\n");

				}
				else
				{

      out.write("\r\n");
      out.write("\t\t\t\t\t<IMG src=\"/images/manager/sales/1month_btA.gif\" onclick=\"monthAction1()\" style=\"cursor:hand\" ></IMG>\r\n");

				}		
				if (hidden!=null && hidden.equals("MONTH2"))
				{

      out.write("\r\n");
      out.write("\t\t\t\t\t<IMG src=\"/images/manager/sales/2month_btB.gif\" style=\"cursor:hand\" onclick=\"monthAction2()\"></IMG>\r\n");

				}			
				else
				{

      out.write("\r\n");
      out.write("\t\t\t\t\t<IMG src=\"/images/manager/sales/2month_btA.gif\" onclick=\"monthAction2()\" style=\"cursor:hand\" ></IMG>\r\n");

				}		
				if (hidden!=null && hidden.equals("MONTH3"))
				{

      out.write("\r\n");
      out.write("\t\t\t\t\t<IMG src=\"/images/manager/sales/3month_btB.gif\" style=\"cursor:hand\" onclick=\"monthAction3()\"></IMG>\t\r\n");
			
				}
				else
				{

      out.write("\t\t\t\r\n");
      out.write("\t\t\t\t\t<IMG src=\"/images/manager/sales/3month_btA.gif\" onclick=\"monthAction3()\" style=\"cursor:hand\" ></IMG>\r\n");
		
				}

      out.write("\r\n");
      out.write("\t\t\t\t<INPUT type=\"text\" size=\"10\" name=\"date1\" value=");
      out.print(date1);
      out.write(">\r\n");
      out.write("\t\t\t\t<FONT face=\"돋움체\" size=\"4\" color=\"#666666\">~</FONT>\r\n");
      out.write("\t\t\t\t<INPUT type=\"text\" size=\"10\" name=\"date2\" value=");
      out.print(date2);
      out.write(">\r\n");
      out.write("\t\t\t\t<IMG src=\"/images/manager/sales/select_bt.gif\" style=\"cursor:hand\" onclick=\"selectAction()\"></IMG>\r\n");
      out.write("\t\t\t\t<INPUT TYPE=\"button\" value=\"저장\" onclick=\"saveAction()\"></INPUT>\r\n");
      out.write("\t\t\t</DIV>\r\n");
      out.write("\r\n");
      out.write("\t\t\t<DIV >\r\n");
      out.write("\t\t\t\t<FONT face=\"돋움체\" size=\"2\" color=\"#666666\">&nbsp;&nbsp;&nbsp;&nbsp;주문자 ID&nbsp;&nbsp;&nbsp;|&nbsp;</FONT>\r\n");
      out.write("\t\t\t\t<INPUT type=\"text\" size=\"18\" name=\"id\" value=");
      out.print(id);
      out.write(">&nbsp;\r\n");
      out.write("\t\t\t</DIV>\r\n");
      out.write("\t\t\t\t<DIV >\r\n");
      out.write("\t\t\t\t<FONT face=\"돋움체\" size=\"2\" color=\"#666666\">&nbsp;&nbsp;&nbsp;&nbsp;진행상태&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;</FONT>\r\n");
      out.write("\t\t\t\t<SELECT name=\"option1\">\r\n");
      out.write("\t\t\t\t<OPTION ");
if(option1 !=null && option1.equals("")){
      out.write("selected");
}
      out.write(" value=\"\">주문상태</OPTION>\r\n");

	if (orderStateList!=null && orderStateList.size()>0)
	{
		for (int j=0; j<orderStateList.size(); j++)
		{
			Hashtable orderStateTable = (Hashtable)orderStateList.get(j);
			String step = (String)orderStateTable.get("STEP");
			String seq = (String)orderStateTable.get("SEQ");

      out.write("\r\n");
      out.write("\t\t\t\t\t<OPTION ");
if(option1 !=null && option1.equals(seq)){
      out.write("selected");
}
      out.write(" value=");
      out.print(seq);
      out.write('>');
      out.print(step);
      out.write("</OPTION>\r\n");

		}
	}

      out.write("\r\n");
      out.write("\t\t\t\t</SELECT>\r\n");
      out.write("\t\t\t\t<SELECT name='option2' value=\"\">\r\n");
      out.write("\t\t\t\t<OPTION ");
if(option2 !=null && option2.equals("")){
      out.write("selected");
}
      out.write(" value=\"\">배송상태</OPTION>\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\r\n");

	if (deliveryStateList!=null && deliveryStateList.size()>0)
	{
		for (int j=0; j<deliveryStateList.size(); j++)
		{
			Hashtable deliveryStateTable = (Hashtable)deliveryStateList.get(j);
			String deliveryState = (String)deliveryStateTable.get("DELIVERY_STATE");
			String seq = (String)deliveryStateTable.get("SEQ");

      out.write("\r\n");
      out.write("\t\t\t\t<OPTION ");
if(option2 !=null && option2.equals(seq)){
      out.write("selected");
}
      out.write(" value=");
      out.print(seq);
      out.write('>');
      out.print(deliveryState);
      out.write("</OPTION>\r\n");

		}
	}

      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t</SELECT>\t\t\t\t\r\n");
      out.write("\t\t\t</DIV>\t\t\r\n");
      out.write("\t</FIELDSET>\r\n");
      out.write("\r\n");
      out.write("\t<BR><BR>\r\n");
      out.write("\r\n");
      out.write("\t<TABLE width=\"750\">\r\n");
      out.write("\t\t<TR>\r\n");
      out.write("\t\t\t<TD colspan=\"2\" width=\"750\" align=\"right\">\r\n");
      out.write("\t\t\t<B>[");
      out.print(inputPage );
      out.write('/');
      out.print(count );
      out.write("]</B>\r\n");
      out.write("\t\t\t</TD>\r\n");
      out.write("\t\t</TR>\r\n");
      out.write("\t\t<TR>\r\n");
      out.write("\t\t\t<TD align=\"left\" width=\"250\">\r\n");
      out.write("\t\t\t\t<SELECT name=\"unit\" onChange=\"selectAction2()\">\r\n");
      out.write("\t\t\t\t\t<OPTION ");
if(unit.equals("10")){
      out.write("selected");
}
      out.write(" value=\"10\">10개</OPTION>\r\n");
      out.write("\t\t\t\t\t<OPTION ");
if(unit.equals("30")){
      out.write("selected");
}
      out.write(" value=\"30\">30개</OPTION>\r\n");
      out.write("\t\t\t\t\t<OPTION ");
if(unit.equals("50")){
      out.write("selected");
}
      out.write(" value=\"50\">50개</OPTION>\r\n");
      out.write("\t\t\t\t\t<OPTION ");
if(unit.equals("70")){
      out.write("selected");
}
      out.write(" value=\"70\">70개</OPTION>\r\n");
      out.write("\t\t\t\t\t<OPTION ");
if(unit.equals("100")){
      out.write("selected");
}
      out.write(" value=\"100\">100개</OPTION>\t\t\t\r\n");
      out.write("\t\t\t\t</SELECT>\r\n");
      out.write("\t\t\t</TD>\t\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t<TD align=\"right\" width=\"500\">\r\n");
      out.write("\t\t\t\t<IMG src=\"/images/manager/sales/page/bbs_first_bt.gif\"onclick=\"goPageAction(1)\" style=\"cursor:hand\"></IMG>\r\n");
      out.write("\t\t\t\t<IMG src=\"/images/manager/sales/page/previous.gif\" onclick=\"goPageAction(");
      out.print(inputPage-1 );
      out.write(")\" style=\"cursor:hand\"></IMG>\r\n");
      out.write("\t\t\t\t<IMG src=\"/images/manager/sales/page/next_bt.gif\" onclick=\"goPageAction(");
      out.print(inputPage+1 );
      out.write(")\" style=\"cursor:hand\"></IMG>\r\n");
      out.write("\t\t\t\t<IMG src=\"/images/manager/sales/page/last_bt.gif\" onclick=\"goPageAction(");
      out.print(count );
      out.write(")\" style=\"cursor:hand\"></IMG>\t\t\t\t\r\n");
      out.write("\t\t\t</TD>\r\n");
      out.write("\t\t</TR>\r\n");
      out.write("\t</TABLE>\r\n");
      out.write("\t\r\n");
      out.write("\t<TABLE style=\"border-collapse:collapse;\" cellpadding=\"3\" cellspacing=\"0\" width=\"750\" border=\"1\" bordercolor=\"#BABABA\" frame=\"hsides\">\r\n");
      out.write("\t\t<TR  bgcolor=\"F9F9F9\">\r\n");
      out.write("\t\t\t<TD width=\"30\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\"></FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"150\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">고객명(아이디)</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"170\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">주문일자</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"100\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">구매수단</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"100\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">총결제액</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"130\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">포인트 사용액</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"80\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">지불 상태</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"80\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">배송 상태</FONT></TD>\r\n");
      out.write("\t\t</TR>\r\n");

	if(orderList  != null && orderList.size() >0 )
	{
		for (int i=0; i<orderList.size(); i++)
		{			
				Hashtable orderTable = (Hashtable)orderList.get(i);
				String seq2 = (String)orderTable.get("SEQ");
				id = (String)orderTable.get("ID");
				String name = (String)orderTable.get("NAME");
				String time  = (String)orderTable.get("TIME");
				String payment  = (String)orderTable.get("PAYMENT");
				String use_bonus  = (String)orderTable.get("USE_BONUS");
				String order_state  = (String)orderTable.get("ORDER_STATE");
				String delivery_state  = (String)orderTable.get("DELIVERY_STATE");
				String pay_kin  = (String)orderTable.get("PAY_KIN");


      out.write("\r\n");
      out.write("\t\t<TR>\r\n");
      out.write("\t\t\t<INPUT type=\"hidden\" name=");
      out.print(seq2 );
      out.write(" value=\"\"></INPUT>\r\n");
      out.write("\t\t\t<TD width=\"30\"><INPUT type=\"checkbox\" name=\"check\" value=");
      out.print(seq2 );
      out.write("></INPUT></TD>\r\n");
      out.write("\t\t\t<TD width=\"120\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">");
      out.print(name);
      out.write('(');
      out.print(id );
      out.write(")</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"200\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">");
      out.print(time);
      out.write("</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"100\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">");
      out.print(pay_kin);
      out.write("</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"100\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">");
      out.print(payment);
      out.write("</FONT></TD>\r\n");
      out.write("\t\t\t<TD width=\"120\" align=\"center\"><FONT face=\"돋움체\" size=\"2\" color=\"#666666\">");
      out.print(use_bonus);
      out.write("</FONT></TD>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t<TD width=\"80\" align=\"center\">\r\n");
      out.write("\t\t\t\t<SELECT name='");
      out.print(seq2 );
      out.write("orderState' onchange=\"checkAction('");
      out.print(i );
      out.write("')\">\r\n");

	if (orderStateList!=null && orderStateList.size()>0)
	{
		for (int j=0; j<orderStateList.size(); j++)
		{
			Hashtable orderStateTable = (Hashtable)orderStateList.get(j);
			String step = (String)orderStateTable.get("STEP");
			String seq = (String)orderStateTable.get("SEQ");


      out.write("\r\n");
      out.write("\t\t\t\t\t<OPTION ");
if(order_state.equals(seq) ){
      out.write("selected");
}
      out.write(" value=");
      out.print(seq);
      out.write('>');
      out.print(step);
      out.write("</OPTION>\r\n");

		}
	}

      out.write("\r\n");
      out.write("\t\t\t\t</SELECT>\r\n");
      out.write("\t\t\t</TD>\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t<TD>\r\n");
      out.write("\t\t\t\t<SELECT name='");
      out.print(seq2 );
      out.write("delState'  onchange=\"checkAction('");
      out.print(i );
      out.write("')\">\r\n");
      out.write("\r\n");

	if (deliveryStateList!=null && deliveryStateList.size()>0)
	{
		for (int j=0; j<deliveryStateList.size(); j++)
		{
			Hashtable deliveryStateTable = (Hashtable)deliveryStateList.get(j);
			String deliveryState = (String)deliveryStateTable.get("DELIVERY_STATE");
			String seq = (String)deliveryStateTable.get("SEQ");

      out.write("\r\n");
      out.write("\t\t\t\t<OPTION ");
if(delivery_state.equals(seq) ){
      out.write("selected");
}
      out.write(" value=");
      out.print(seq);
      out.write('>');
      out.print(deliveryState);
      out.write("</OPTION>\r\n");

		}
	}

      out.write("\r\n");
      out.write("\t\t\t\t</SELECT>\r\n");
      out.write("\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t</TD>\r\n");
      out.write("\t\t</TR>\r\n");
      out.write("\t\t\r\n");

		}
	}
	else
	{

      out.write("\r\n");
      out.write("\t<TR>\r\n");
      out.write("\t\t<TD  colspan=\"8\" align=\"center\">\r\n");
      out.write("\t\t\t조회된 데이터가 없습니다.\r\n");
      out.write("\t\t</TD>\r\n");
      out.write("\t</TR>\r\n");

	}

      out.write("\r\n");
      out.write("\t</TABLE>\r\n");
      out.write("</FORM>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
